package com.lottery.material.entity.conf;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Description：系统平台收益分成比例配置表
 * Created by 朱正磊 on 2019-04-09 10:24
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_platform_scale_config")
public class PlatformScaleConfig extends BaseEntity {

    private static final long serialVersionUID = 2166879894935174661L;

    @Column(columnDefinition = "int(1) comment '收益类型（1：文章打赏；2：文章收费）'")
    private Integer utilityType;

    @Column(columnDefinition = "decimal(5,2) comment '平台占比例（范围0~1之间）'")
    private BigDecimal platformScale;

    @Column(columnDefinition = "decimal(5,2) comment '作者占比例（范围0~1之间）'")
    private BigDecimal authorScale;

    @Column(columnDefinition = "int(1) default '1' comment '是否删除（1：否；2：是）'")
    private Integer isDelete;

}
